<%= javascript_include_tag 'ufo' %>

<tr id="media_<%= show_media.id %>_a"><td rowspan="2">
	<% if show_media.is_a? Picture%>
	<%= image_tag url_for_file_column(show_media, "file", "thumb") %> 
	<% else %>
		<% if show_media.is_a? Audio%>
  		 <%= mp3_player( 
				{ :file => "/audio/file/" + show_media.file_relative_path(nil) + ".mp3", :displayheight => 0 },
				{ :id => show_media.id, :width => 300, :height => 40 } ) %>
  	  <% else %>
  		  <%= media_player( 
				{:file => "/video/file/" + show_media.file_relative_path(subdir = nil)+".flv"},
				{:id => show_media.id} )%>
			<% end %>
	<% end %>
	</td></tr>
<tr id="media_<%= show_media.id %>_b"><td><%= show_media.caption %></td></tr>
 

